package cool.mtc.minghe.web.controller.login;

import cool.mtc.minghe.web.controller.BaseController;
import cool.mtc.security.auth.password.PasswordForm;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 明河
 */
@Tag(name = "登录")
@RestController
@RequestMapping("/api/login")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class LoginController extends BaseController {

    @Tag(name = "登录")
    @Operation(summary = "用户名密码登录")
    @PostMapping("password")
    public void loginByPassword(@RequestBody @Validated PasswordForm form) {
    }
}
